// 创建应用
import {createApp} from 'vue'
// 引入App.vue 导入根组件  直接引入或通过路由引入
import App from './App.vue'
import router from './router';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// createApp(App).mount('#app') 创建一个APP并挂载到#app #app是index.html中的一个id

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router);
app.use(ElementPlus)
app.mount('#app')
